/*
 * @(#)SimClientRIP.java     Robert Denda&Didier Gutacker
 *
 */

/** 
 * Die Klasse SimClientRIP stellt die zusaetzliche Funktionalitaet fuer die Fernsteuerung
 * der RIP-Simulation bereit. 
 *
 *
 * @author 	Didier Gutacker
 * @version     1.0, 06.09.1997
 * @see SimulationClient
 * @see TextMethods
 * @see SimFrameRIP
 *
 */

import java.awt.*;

public final class SimClientRIP extends SimulationClient {
  static SimClientRIP thisClient;

  public SimClientRIP( String hostname, int port ) {
    super( hostname, port );
    textChangeGuard = new Lock();
    text = new TextMethodsDeutschRIP();
    text.frameTitle = text.frameTitle + " <CLIENT>";
    f = new SimFrameRIP( text, this, this );
    f.pack();
    f.resize(790,600);
    f.show();
  } // SimClientRIP.SimClientRIP

  public static void main( String [] argv ) {
    try {
      if ( ( argv[0] != null ) && ( argv[1] != null ) ) {
	Integer port = null ;
	try {
	  port = new Integer( argv[1] );
	} catch(  NumberFormatException e ) {
	} // try
	thisClient = new SimClientRIP( argv[0], port.intValue() );
      } // if
    } catch( ArrayIndexOutOfBoundsException e ) {
      System.err.println( "Wrong number of arguments.  Synopsis: SimulationClient <hostname> <port>" );
    } // try
  } // SimClientRIP.main


} // SimClientRIP
